package shop.milvus;

import shop.milvus.dto.MilvusSearchDto;
import shop.milvus.enums.MilvusCollectionName;

import java.util.HashMap;
import java.util.List;

public interface MilvusService {
    public void createCollection( );
    //插入数据        集合名称，向量数组，商品id


//    List<MilvusSearchDto> searchVectors(List<Float> vector, String fieldName, int topK, List<String> outFieldNames, String toSoleFieldName, List<Long> skipIds);

    Long insertData(String emdeddingName, List<Float> vector, HashMap<String, Object> fields);

    List<MilvusSearchDto> searchVectors(List<Float> vector, String fieldName, int topK, List<String> outFieldNames, String toSoleFieldName, List<Long> skipIds, String filterExpr);

    long deleteDataById(List<Long> ids);


    long deleteDataByGoodsId( List<Long> ids);
}
